//
//  MyAVAudioPlayer.h
//  哈哈
//
//  Created by 奇艺果 on 2017/12/13.
//  Copyright © 2017年 奇艺果. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface MyAVAudioPlayer : AVAudioPlayer
@property(nonatomic,strong) AVAudioPlayer *player;

-(instancetype)init;

+(instancetype)sharedAVAudioPlayer;
//通过传递的歌曲名称进行播放
-(void)playMusicWithMusicName:(NSString *)musicName;
//开始或暂停
-(void)playOrStopMusic;
// 停止
- (void)stopMusic;
@end
